package day3.zuoye;

import java.util.Scanner;

public class Test07 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入一个四位的数");
        int ge, shi,bai,qan,wan;
        int a=input.nextInt();
        ge=a%10;
        shi=(a/10)%10;
        bai=(a/100)%10;
        qan=a/1000;
        if(ge+shi+bai+qan>16&&ge+shi+bai+qan<=20){
            System.out.println("恭喜你中奖了奖品是餐巾纸一包");
        }else if(ge+shi+bai+qan>20&&ge+shi+bai+qan<=24){
            System.out.println("恭喜你中奖了奖品是电吹风一部");
        }else if(ge+shi+bai+qan>24){
            System.out.println("恭喜你中奖了奖品是彩电一台");
        }else{
            System.out.println("下次继续努力");
        }

    }
}
